package com.ls.lserp.dbaccess.Dao;


import java.util.List;

import com.ls.lserp.common.persistence.CrudDao;
import com.ls.lserp.common.persistence.annotation.MyBatisDao;
import com.ls.lserp.dbaccess.Entity.FinanceEntity;
import com.ls.lserp.dbaccess.Entity.OgnizationSettlementEntity;
import com.ls.lserp.modules.order.entity.AuditInfo;
@MyBatisDao
public interface FinanceEntityMapper extends CrudDao<FinanceEntity>{
    int deleteByPrimaryKey(Long financeId);

    int insert(FinanceEntity record);

    int insertSelective(FinanceEntity record);

    FinanceEntity selectByPrimaryKey(Long financeId);

    int updateByPrimaryKeySelective(FinanceEntity record);

    int updateByPrimaryKeyWithBLOBs(FinanceEntity record);

    int updateByPrimaryKey(FinanceEntity record);
    //更新审核状态
    int updateStatus(AuditInfo auditInfo);
    //更新结算状态
    int updateSettlementStatus(FinanceEntity financeEntity);
    //获取当前月份结束数据
    FinanceEntity getThisMonthSettleData(String dateTime,long ognizationId,String settlementStatus);
    //获取上个月结束数据
    OgnizationSettlementEntity getLastMonthSettleData(String dateTime,long ognizationId);
    //通过合同信息获取财务明细 
    FinanceEntity getFinanceByContractInfo(FinanceEntity financeEntity);
    //根据合同信息更新财务明细金额
    int updateByContractInfo(FinanceEntity financeEntity);
    //业务选择一览画面
    List<FinanceEntity> findListForVoucher(FinanceEntity financeEntity);
    
}